import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _define_property } from "@swc/helpers/_/_define_property";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _wrap_native_super } from "@swc/helpers/_/_wrap_native_super";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
export var ErrorType = /*#__PURE__*/ function(ErrorType) {
    ErrorType["http"] = "HttpError";
    ErrorType["other"] = "OtherError";
    return ErrorType;
}({});
export var HttpError = /*#__PURE__*/ function(Error1) {
    "use strict";
    _inherits(HttpError, Error1);
    var _super = _create_super(HttpError);
    function HttpError(message) {
        _class_call_check(this, HttpError);
        var _this;
        _this = _super.call(this, message);
        _define_property(_assert_this_initialized(_this), "type", ErrorType.http);
        return _this;
    }
    return HttpError;
}(_wrap_native_super(Error));
export var OtherError = /*#__PURE__*/ function(Error1) {
    "use strict";
    _inherits(OtherError, Error1);
    var _super = _create_super(OtherError);
    function OtherError(message) {
        _class_call_check(this, OtherError);
        var _this;
        _this = _super.call(this, message);
        _define_property(_assert_this_initialized(_this), "type", ErrorType.other);
        return _this;
    }
    return OtherError;
}(_wrap_native_super(Error));

 //# sourceMappingURL=error.js.map